
using System;
using System.Collections.Generic;
using UnityEngine;

namespace M1
{
    public class BaseModel : ScriptableObject
    {
        public virtual void editor检查数据()
        {
            Debug.Log("检查数据");
        }
    
    }


    public class BaseModel<M,T> : BaseModel where M : BaseModel
    {
        private static M instance;
        public static M Instance{get{
                if (instance == null)
                {
                    instance = Model管理器.Instance.GetModel<M>();
                }
                return instance;
            }
        }
    
        [SerializeField] protected string 配置路径;
        [SerializeField] protected List<T> Datas;
    
        public void AddData(List<T> ddd)
        {
            Datas.AddRange(ddd);
        }
        public List<T> GetData()
        {
            return Datas.CopyList();
        }
    }
}

